//
//  FetchedResultsControllerTableViewDataSource.h
//  LibraryStorm
//
//  Created by Anh Nguyen on 5/6/14.
//  Copyright (c) 2014 3ATeam. All rights reserved.
//

#import <Foundation/Foundation.h>

@class NSFetchedResultsController;

@protocol FetchedResultsControllerTableViewDataSourceDelegate

- (void)configureCell:(id)cell withObject:(id)object;
- (void)deleteObject:(id)object;

@end

@interface FetchedResultsControllerTableViewDataSource : NSObject <UITableViewDataSource, NSFetchedResultsControllerDelegate>

@property (nonatomic, strong) NSFetchedResultsController* fetchedResultsController;
@property (nonatomic, weak) id<FetchedResultsControllerTableViewDataSourceDelegate> delegate;
@property (nonatomic, copy) NSString* reuseIdentifier;
@property (nonatomic) BOOL paused;

- (id)initWithTableView:(UITableView*)tableView;
- (id)selectedItem;

@end
